package com.eddie.context;

/**
 * @author Eddie
 */
public class TenantContext {
    private static final ThreadLocal<String> TENANT_CONTEXT = new InheritableThreadLocal<String>() {
        @Override
        protected String initialValue() {
            return "all";
        }
    };

    public static String get() {
        return TENANT_CONTEXT.get();
    }

    public static void set(String mart) {
        TENANT_CONTEXT.set(mart);
    }

    public static void remove() {
        TENANT_CONTEXT.remove();
    }
}
